Integrand size = 23, antiderivative size = 48 \[ \int \frac {\csc ^2(e+f x)}{a+b \tan ^2(e+f x)} \, dx=-\frac {\sqrt {b} \arctan \left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a}}\right )}{a^{3/2} f}-\frac {\cot (e+f x)}{a f} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {3744, 331, 211} \[ \int \frac {\csc ^2(e+f x)}{a+b \tan ^2(e+f x)} \, dx=-\frac {\sqrt {b} \arctan \left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a}}\right )}{a^{3/2} f}-\frac {\cot (e+f x)}{a f} \]
[In]
[Out]
Rule 211
Rule 331
Rule 3744
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {1}{x^2 \left (a+b x^2\right )} \, dx,x,\tan (e+f x)\right )}{f} \\ & = -\frac {\cot (e+f x)}{a f}-\frac {b \text {Subst}\left (\int \frac {1}{a+b x^2} \, dx,x,\tan (e+f x)\right )}{a f} \\ & = -\frac {\sqrt {b} \arctan \left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a}}\right )}{a^{3/2} f}-\frac {\cot (e+f x)}{a f} \\ \end{align*}
Time = 0.55 (sec) , antiderivative size = 48, normalized size of antiderivative = 1.00 \[ \int \frac {\csc ^2(e+f x)}{a+b \tan ^2(e+f x)} \, dx=-\frac {\sqrt {b} \arctan \left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a}}\right )}{a^{3/2} f}-\frac {\cot (e+f x)}{a f} \]
[In]
[Out]
Time = 0.19 (sec) , antiderivative size = 44, normalized size of antiderivative = 0.92
method | result | size |
derivativedivides | \(\frac {-\frac {b \arctan \left (\frac {b \tan \left (f x +e \right )}{\sqrt {a b}}\right )}{a \sqrt {a b}}-\frac {1}{a \tan \left (f x +e \right )}}{f}\) | \(44\) |
default | \(\frac {-\frac {b \arctan \left (\frac {b \tan \left (f x +e \right )}{\sqrt {a b}}\right )}{a \sqrt {a b}}-\frac {1}{a \tan \left (f x +e \right )}}{f}\) | \(44\) |
risch | \(-\frac {2 i}{f a \left ({\mathrm e}^{2 i \left (f x +e \right )}-1\right )}-\frac {\sqrt {-a b}\, \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}-\frac {2 i \sqrt {-a b}-a -b}{a -b}\right )}{2 a^{2} f}+\frac {\sqrt {-a b}\, \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}+\frac {2 i \sqrt {-a b}+a +b}{a -b}\right )}{2 a^{2} f}\) | \(119\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 84 vs. \(2 (40) = 80\).
Time = 0.30 (sec) , antiderivative size = 257, normalized size of antiderivative = 5.35 \[ \int \frac {\csc ^2(e+f x)}{a+b \tan ^2(e+f x)} \, dx=\left [\frac {\sqrt {-\frac {b}{a}} \log \left (\frac {{\left (a^{2} + 6 \, a b + b^{2}\right )} \cos \left (f x + e\right )^{4} - 2 \, {\left (3 \, a b + b^{2}\right )} \cos \left (f x + e\right )^{2} + 4 \, {\left ({\left (a^{2} + a b\right )} \cos \left (f x + e\right )^{3} - a b \cos \left (f x + e\right )\right )} \sqrt {-\frac {b}{a}} \sin \left (f x + e\right ) + b^{2}}{{\left (a^{2} - 2 \, a b + b^{2}\right )} \cos \left (f x + e\right )^{4} + 2 \, {\left (a b - b^{2}\right )} \cos \left (f x + e\right )^{2} + b^{2}}\right ) \sin \left (f x + e\right ) - 4 \, \cos \left (f x + e\right )}{4 \, a f \sin \left (f x + e\right )}, \frac {\sqrt {\frac {b}{a}} \arctan \left (\frac {{\left ({\left (a + b\right )} \cos \left (f x + e\right )^{2} - b\right )} \sqrt {\frac {b}{a}}}{2 \, b \cos \left (f x + e\right ) \sin \left (f x + e\right )}\right ) \sin \left (f x + e\right ) - 2 \, \cos \left (f x + e\right )}{2 \, a f \sin \left (f x + e\right )}\right ] \]
[In]
[Out]
\[ \int \frac {\csc ^2(e+f x)}{a+b \tan ^2(e+f x)} \, dx=\int \frac {\csc ^{2}{\left (e + f x \right )}}{a + b \tan ^{2}{\left (e + f x \right )}}\, dx \]
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 42, normalized size of antiderivative = 0.88 \[ \int \frac {\csc ^2(e+f x)}{a+b \tan ^2(e+f x)} \, dx=-\frac {\frac {b \arctan \left (\frac {b \tan \left (f x + e\right )}{\sqrt {a b}}\right )}{\sqrt {a b} a} + \frac {1}{a \tan \left (f x + e\right )}}{f} \]
[In]
[Out]
none
Time = 0.47 (sec) , antiderivative size = 59, normalized size of antiderivative = 1.23 \[ \int \frac {\csc ^2(e+f x)}{a+b \tan ^2(e+f x)} \, dx=-\frac {\frac {{\left (\pi \left \lfloor \frac {f x + e}{\pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (b\right ) + \arctan \left (\frac {b \tan \left (f x + e\right )}{\sqrt {a b}}\right )\right )} b}{\sqrt {a b} a} + \frac {1}{a \tan \left (f x + e\right )}}{f} \]
[In]
[Out]
Time = 10.33 (sec) , antiderivative size = 40, normalized size of antiderivative = 0.83 \[ \int \frac {\csc ^2(e+f x)}{a+b \tan ^2(e+f x)} \, dx=-\frac {\mathrm {cot}\left (e+f\,x\right )}{a\,f}-\frac {\sqrt {b}\,\mathrm {atan}\left (\frac {\sqrt {b}\,\mathrm {tan}\left (e+f\,x\right )}{\sqrt {a}}\right )}{a^{3/2}\,f} \]
[In]
[Out]